subset
{base}
Return subsets of vectors, matrices or data frames which meet conditions.
round
{base}
Rounds numbers
freq
{questionr}
Generate frequency tables
str
{utils}
Get the structure of an R object
read.csv
{utils}
Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters
geom_histogram
{GGPLOT2}
Generates a histogram
rnorm
{base}
Generate random numbers from a normal distribution
theme_classic
{GGPLOT2}
A minimalistic theme with no gridlines
factor
{base}
Create a factor
order
{base}
Get indexes that will sort a vector
mean
{base}
Get mean of a vector
rbeta
{stats}
Beta Random Number Generating Function
View
{base}
View a data frame
nrow
{base}
Get number of rows of a data frame
ncol
{base}
Get number of columns of a data frame
arrow
{GGPLOT2}
Draw an arrow in a ggplot graph
theme
{GGPLOT2}
Set theme for GGPLOT2
ls
{base}
Return a vector of character strings giving the names of the objects in the specified environment
runif
{stats}
Draws ranndom numbers from the uniform distribution
table
{base}
Obtain frequency table of a variable/cross-tabulation of two variables
matrix
{base}
Creates a matrix from the given set of values.
install.packages
{base}
Install R package
aes
{GGPLOT2}
Construct aesthetic mapping of a ggplot graph
ordered
{dplyr}
Create an ordered factor
geom_segment
{GGPLOT2}
Generates a line segment or curve
seq
{base}
Create a sequence
ifelse
{base}
Return a or b depending on the value of test
with
{base}
evaluate expression in the context of a data frame
theme_bw
{GGPLOT2}
A black and white ggplot theme
which.max
{base}
return index of the largest value in a vector
element_blank
{GGPLOT2}
This theme element draws nothing, and assigns no space
desc
{dplyr}
Arrange in descending order
sample_n
{dplyr}
Sample a number of observations from a data frame
class
{base}
Retrieve class of an R object
filter
{dplyr}
Filter out rows of a data frame according to logical vector
rbind
{base}
Combine R objects by rows
ylab
{GGPLOT2}
Label the y axis (ggplot)
sum
{base}
Get sum of numeric values or a vector
select
{dplyr}
Select columns from a tibble/data frame
geom_density
{GGPLOT2}
Generates a density plot
data.frame
{base}
Create a data.frame from vectors
attach
{base}
Attach Set of R Objects to Search Path
geom_ribbon
{GGPLOT2}
Generates an area plot
arrange
{dplyr}
Sort values of data frame according to a variable/combination of varaibles
geom_bar
{GGPLOT2}
Generates a bar chart
is.na
{base}
Check if a value is NA/elements of vector are NA
head
{utils}
Show first 5 rows of a data frame
dnorm
{stats}
Density distribution for the normal distribution
ggtitle
{GGPLOT2}
Generates a title for a ggplot graph
ls.str
{utils}
Similarly to ls, with a print() method that calls str() on each object
xlab
{GGPLOT2}
Label the x axis (ggplot)
summarise
{dplyr}
collapse the dataset to a summary statistic. Usually used with group_by()
complete.cases
{stats}
Find Complete Cases
cbind
{base}
Combine R objects by columns
get_mode
{rstatix}
Compute the mode in a given vector.
rm
{base}
Remove objects
boxplot
{graphics}
Plot a simple box plot
unique
{base}
get unique elements
read.spss
{foreign}
Read a .sav file (SPSS data)
ungroup
{dplyr}
Resolve grouping created with “group_by”
geom_point
{GGPLOT2}
Generates a scatter plot
element_text
{GGPLOT2}
Customise text in GGPLOT2
cut
{base}
Convert Numeric to Factor
max
{base}
Get maximum of a vector
lprop
{questionr}
Display row percentages of a two-way frequency table
mutate
{dplyr}
Modify/create a column in a data frame
tabulate
{base}
Counts the number of times each integer occurs in an integer-only vector
levels
{base}
Get levels of a factor
labs
{GGPLOT2}
Customise labels in GGPLOT2
scale_y_continuous
{GGPLOT2}
Customise continuous y axis
bar
{base}
Used for annotations, such as “expression(paste(”-“,bar(y)))”
group_by
{dplyr}
Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise
dim
{base}
Get dimensions of a data frame
var
{stats}
Calculate variance
expression
{base}
Used in plots to add symbols to axes
ggplot
{GGPLOT2}
Create a ggplot graph
slice
{dplyr}
Subset rows using their positions
sample
{base}
Takes a sample of the specified size
after_stat
{GGPLOT2}
Control aesthetic evaluation. On the module used for displying percent
t.test
{stats}
Performs one and two sample t-tests on vectors of data.
prop.test
{stats}
Test of Equal or Given Proportions
c
{base}
Combine values/vectors into a vector
grid.arrange
{gridExtra}
Places graphical objects into a rectangular grid
pie
{graphics}
Creates a basic pie chart
range
{base}
Return range of values
hist
{graphics}
Plot a simple histogram
min
{base}
Get minimum of a vector
names
{base}
Retrieve names of a list/vector
as.data.frame
{base}
Functions to check if an object is a data frame, or coerce it if possible.
read_excel
{readxl}
Read an Excel file
plot
{graphics}
Generic function from base R to produce a plot
scale_x_continuous
{GGPLOT2}
Customise continuous x axis
setwd
{base}
Set Working Directory
recode
{dplyr}
Recode a variable
sd
{stats}
Get standard deviation of a vector
median
{stats}
Get median of a vector
library
{base}
Load an R package
summary
{base}
Obtain summary statistics or detailed regression output
set.seed
{base}
Initialise a pseudorandom number generator.
The end!